home *** CD-ROM | disk | FTP | other *** search
/ Hackers Handbook - Millenium Edition / Hackers Handbook.iso / library / hack99 / sysklogd_bof.txt < prev    next >
Encoding:
Internet Message Format  |  1999-03-24  |  1.7 KB

  1. Date: Tue, 16 Feb 1999 02:22:56 -0500
  2. From: Cory Visi <visi@CMU.EDU>
  3. To: BUGTRAQ@netspace.org
  4. Subject: RedHat sysklogd vulnerability
  5.  
  6. I'd like to apologize for being so late with this e-mail as I have known
  7. about this problem for months. The vulnerability was discussed in a Thu, 10
  8. Sep 1998 BugTraq e-mail by Michal Zalewski (lcamtuf@IDS.PL). I replied to it
  9. with a quick patch. Here are some lines from my e-mail:
  10.  
  11. > I'm not completely happy with this, as it modifies the reference parameter,
  12. > ptr, but it will solve the problem. However, later on:
  13. >
  14. > ExpandKadds(line, eline)
  15. >
  16. > Where eline is the same size as line. I think the real solution is to make
  17. > sure the buffer is larger (LOG_LINE_LENGTH) like Michal said, and make sure
  18. > modules and programs don't generate obsurdly long messages,  because you
  19. > can't be certain how much room is necessary for the expanded symbols. It
  20. > would be nice if ExpandKadds() allocated memory dynamically, but it doesn't.
  21.  
  22. RedHat immediately issued a "fix" to their current package: sysklogd-1.3-26
  23. This "fix" is merely my patch (and nothing more). My patch DOES NOT fix the
  24. problem. As discussed by the package co-maintainer (Martin Schulze
  25. (joey@FINLANDIA.INFODROM.NORTH.DE)) the bug is fixed in the latest sysklogd
  26. package (1.3-30). In fact, the bug was fixed in 1996. What this comes down
  27. to is that any Linux distribution running an old sysklogd package (namely
  28. RedHat all versions) STILL has a potential (rather obscure) buffer overflow.
  29. They need to upgrade to the latest version ASAP. I e-mailed
  30. bugzilla@redhat.com and got no response.
  31.  
  32. Thank you,
  33.  
  34.      .-.        ,~~-.      .-~~-.
  35.  ~._'_.'        \_   \    /      `~~-
  36.    |              `~- \  /
  37.    `.__.-'ory          \/isi
  38.  
  39.